package scanpackage.filter;

import org.apache.http.HttpResponse;
import org.springframework.stereotype.Service;
import scanpackage.exception.AuthException;

@Service
public class HeaderHttpResponseFilter implements HttpResponseFilter {
    @Override
    public void filter(HttpResponse response) {
       if(response.getStatusLine().getStatusCode()==401)
           throw new AuthException();
    }
}